<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>操作失败</title>
    <link rel="stylesheet" href="/static/css/wepayui.min.css">
</head>
<body ontouchstart>
<div class="container" id="container">
    <div class="weui-msg" style="opacity: 1;" id="s2">
        <div class="weui-msg__icon-area"><i class="weui-icon-warn  weui-icon_msg"></i></div>
        <div class="weui-msg__text-area">
            <h2 class="weui-msg__title">操作失败</h2>
            <p class="weui-msg__desc">{$msg}</p>
        </div>
        <div class="page msg_success js_show">
            <div class="weui-msg__opr-area">
                <p class="weui-btn-area">
                    <a href="javascript:closewin();" class="weui-btn weui-btn_primary">关闭</a>
                </p>
            </div>
        </div>
    </div>

</div>
</body>
</html>
<script>
    function closewin() {
        if (/MicroMessenger/.test(window.navigator.userAgent)) {
            WeixinJSBridge.invoke('closeWindow');
        } else if (/AlipayClient/.test(window.navigator.userAgent)) {
            AlipayJSBridge.call("closeWebview");
        } else {
            alert('微信或支付宝浏览器中才可正常关闭');
        }
    }
</script>